/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2024-11-29     73554       the first version
 */
#ifndef DRIVERS_INCLUDE_USER_CONFIG_H_
#define DRIVERS_INCLUDE_USER_CONFIG_H_


#include "rtthread.h"


#define Power_on  1
#define Power_off 0


//GPIO
#define BT_LINK_WAKEUP_IO_IRQ      GET_PIN(B, 1)
#define Power_4G_ctrl_pin_num      GET_PIN(B, 15)  //4G模块控制
#define Power_PP_ctrl_pin_num      GET_PIN(B, 4)   //外设供电
#define Power_RS485EN_ctrl_pin_num GET_PIN(A, 1)   //RS485

#define Flash_en_ctrl_pin_num      GET_PIN(A, 4)   //flash使能
#define Power_PP2_ctrl_pin_num     GET_PIN(A, 12)  //flash电源
#define OutPut_power_ctrl_pin_num  GET_PIN(C, 13)  //主机 电源
#define GDYL_power_ctrl_pin_num    GET_PIN(B, 5)   //光电雨量 电源
#define BT_sleep_ctrl_pin_num      GET_PIN(B, 14)  //BLE模块控制
#define BUZZER_Ctrl_pin_num        GET_PIN(A, 8)   //蜂鸣器控制
#define LED_Ctrl_pin_num           GET_PIN(A, 11)  //LED控制

#define BT_LINK_WAKEUP  rt_pin_read(BT_LINK_WAKEUP_IO_IRQ)




typedef struct user_dat_st
{
    int Alarm_threshold_Max_val;
    int Alarm_threshold_Min_val;
    int Sending_interval_val;
    int Heartbeat;
    int HardwareVersion;
    int SoftwareVersion;
    int Activation_status;
    int testdata1;
    int testdata2;
} user_config_type;





#endif /* DRIVERS_INCLUDE_USER_CONFIG_H_ */
